<!-- 基础数据编辑 -->
<div class="am-popup popup-not-title" id="popup-saveinfo">
    <div class="am-popup-inner am-radius">
        <span data-am-modal-close class="am-close am-close-alt">&times;</span>
        <div class="am-popup-bd am-padding-0">
            <form class="am-form form-validation am-form-full-screen am-form-popup-fixed" action="{{:MyUrl('admin/customview/save')}}" method="POST" request-type="sync" request-value="FormBackSaveinfoEdit">
                <div class="am-padding-horizontal-sm">
                    <!-- 基础信息 -->
                    <div class="am-panel am-panel-default am-margin-top-sm">
                        <div class="am-panel-hd">
                            <h3 class="am-panel-title">{{:MyLang('form_base_data_title')}}</h3>
                        </div>
                        <div class="am-panel-bd am-padding-vertical-xs">
                            <div class="am-form-group am-form-file">
                                <label class="am-block">{{:MyLang('common_service.customview.form_logo_name')}}<a href="javascript:;" class="am-icon-question-circle am-text-warning am-margin-left-sm" data-am-popover="{content: '{{:MyLang('common_service.customview.form_logo_tips')}}', trigger: 'hover focus', theme: 'sm'}"></a></label>
                                <ul class="plug-file-upload-view logo-images-view" data-form-name="logo" data-max-number="1" data-dialog-type="images">
                                    {{if !empty($data['logo'])}}
                                        <li>
                                            <input type="text" name="logo" value="{{$data.logo}}" data-validation-message="{{:MyLang('form_upload_images_message')}}" />
                                            <img src="{{$data.logo}}" />
                                            <i>×</i>
                                        </li>
                                    {{/if}}
                                </ul>
                                <div class="plug-file-upload-submit" data-view-tag="ul.logo-images-view">+ {{:MyLang('form_upload_images_title')}}</div>
                            </div>
                            <div class="am-form-group">
                                <label>{{:MyLang('common_service.customview.form_item_name')}}<span class="am-form-group-label-tips-must">*</span></label>
                                <input type="text" name="name" placeholder="{{:MyLang('common_service.customview.form_item_name_message')}}" maxlength="60" data-validation-message="{{:MyLang('common_service.customview.form_item_name_message')}}" class="am-radius" {{if !empty($data['name'])}} value="{{$data.name}}"{{/if}} required />
                            </div>

                            <div class="am-cf">
                                <div class="am-u-sm-6 am-padding-horizontal-0">
                                    {{include file="lib/is_enable" /}}
                                </div>
                                <div class="am-u-sm-6 am-padding-horizontal-0">
                                    {{include file="lib/is_full_screen" /}}
                                </div>
                            </div>
                            <div class="am-cf">
                                <div class="am-u-sm-6 am-padding-horizontal-0">
                                    {{include file="lib/is_header" /}}
                                </div>
                                <div class="am-u-sm-6 am-padding-horizontal-0">
                                    {{include file="lib/is_footer" /}}
                                </div>
                            </div>

                            <textarea name="html_content" id="html_content" class="am-hide">{{if !empty($data['html_content'])}}{{$data.html_content}}{{/if}}</textarea>
                            <textarea name="css_content" id="css_content" class="am-hide">{{if !empty($data['css_content'])}}{{$data.css_content}}{{/if}}</textarea>
                            <textarea name="js_content" id="js_content" class="am-hide">{{if !empty($data['js_content'])}}{{$data.js_content}}{{/if}}</textarea>
                        </div>
                    </div>
                    
                    <!-- SEO -->
                    <div class="am-panel am-panel-default am-radius">
                        <div class="am-panel-hd">
                            <h3 class="am-panel-title">{{:MyLang('form_seo_data_title')}}</h3>
                        </div>
                        <div class="am-panel-bd am-padding-vertical-xs">
                            {{include file="lib/seo" /}}
                        </div>
                    </div>
                </div>

                <!-- 操作 -->
                <div class="am-form-popup-submit">
                    <input type="hidden" name="id" value="{{if !empty($data['id'])}}{{$data.id}}{{/if}}" />
                    <button type="button" class="am-btn am-btn-warning am-radius am-btn-xs btn-loading-example am-margin-right-lg" data-am-modal-close>
                        <i class="am-icon-paint-brush"></i>
                        <span>{{:MyLang('cancel_title')}}</span>
                    </button>
                    <button type="submit" class="am-btn am-btn-primary am-radius am-btn-xs btn-loading-example" data-am-loading="{spinner: 'circle-o-notch', loadingText:'{{:MyLang('confirm_title')}}'}">
                        <i class="am-icon-check"></i>
                        <span>{{:MyLang('confirm_title')}}</span>
                    </button>
                </div>
            </form>
        </div>
    </div>
</div>